<?php
class Customer_Service_BalanceHistory
{

	public static $cbh_type =array(-1=>'扣款',0=>'',1=>'充值');
	
	public static $cbh_op_type =array(-1=>'',0=>'',1=>'充值',2=>'退款',3=>'SKU',
									 4=>'item',5=>'plan',
									 6=>'物流扣费',7=>'物流退费',8=>'代打Label费');
									 
	public static $cbh_class =array(0=>'正常扣款/入款',1=>'冻结扣款/入款',2=>'已解冻');									 
	
	public static function add($row){
		$Obj = new Customer_Model_BalanceHistory();
		return $Obj->add($row);		
	}
	
	public static function update($row,$id){
		$Obj = new Customer_Model_BalanceHistory();
		return $Obj->update($row,$id);		
	}
	
	public static function delete($id){
		$Obj = new Customer_Model_BalanceHistory();
		return $Obj->delete($id);		
	}
	
    public static function getByCondition($condition,$type,$orderby,$pageSize,$page){
        $obj = new Customer_Model_BalanceHistory();
        return $obj->getByCondition($condition,$type,$orderby,$pageSize,$page);
	}

}